package com.dji.sample.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjt
 * @since 2022-09-11
 */
@Data
@TableName("sys_organization")
@AllArgsConstructor
@Builder
public class SysOrganization extends Model<SysOrganization> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "org_id", type = IdType.AUTO)
    private Long orgId;

    private Long parentId;

    /**
     * 部门层级字典项
     */
    private String orgLevel;

    /**
     * 组织名称
     */
    private String orgName;

    /**
     * 部门内置类型码
     */
    private String orgInternalCode;

    /**
     * 更新时间
     */
    private Date updateDate;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 组织机构全名称
     */
    private String orgFullName;

    private String areaNo;

    public SysOrganization(){}
}
